package com.zefor.pojo;

import java.util.Date;

/*
* 当前厂房耗水情况
* */
public class WaterPojo {

    //用水量
    private Double waterconsumption;

    //更新时间
    private Date timestamp;


    public Double getWaterconsumption() {
        return waterconsumption;
    }

    public void setWaterconsumption(Double waterconsumption) {
        this.waterconsumption = waterconsumption;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Double timestamp) {
        this.timestamp = new Date((long) (timestamp*1000));
    }


    @Override
    public String toString() {
        return "WaterPojo{" +
                "waterconsumption=" + waterconsumption +
                ", timestamp=" + timestamp +
                '}';
    }
}
